package com.zbf.web;

import com.alibaba.fastjson.JSON;
import com.zbf.config.TestConsulConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/17  15:51
 * 描述:
 */
@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    private TestConsulConfig testConsulConfig;

    @RequestMapping("getInfo")
    public String getConfigINfo(HttpServletResponse response){


        return JSON.toJSONString(testConsulConfig);
    }

    @RequestMapping("getInfo2")
    public String getConfigINf2o(){

        return "===^_^ ok===";
    }

}
